<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="../../layui/css/layui.css">
</head>
<body class="layui-layout-body">
<!--新增弹窗-->
<div class="site-text" style="margin: 5%;" id="window" target="test123">
    <form class="layui-form" id="book" method="post" lay-filter="example">
        <div class="layui-form-item">
            <label class="layui-form-label">产品名称</label>
            <div class="layui-input-block">
                <input type="text" id="p_name" name="p_name" lay-verify="title" autocomplete="off" placeholder="产品名称"
                       class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">产品地址</label>
            <div class="layui-input-block">
                <input type="text" id="p_area" name="p_area" lay-verify="title" autocomplete="off"
                       placeholder="类别备注" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">产品规格</label>
            <div class="layui-input-block">
                <input type="text" id="s_ml" name="s_ml" lay-verify="title" autocomplete="off" placeholder="产品类别"
                       class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">产品类别</label>
            <div class="layui-input-block">
                <input type="text" id="s_name" name="s_name" lay-verify="title" autocomplete="off" placeholder="产品类别"
                       class="layui-input">
            </div>
        </div>
    </form>
</div>
</body>
<script src="../../layui/layui.js"></script>
<script>
    function getValue() {
        var p_name = document.getElementById("p_name").value;
        var p_area = document.getElementById("p_area").value;
        var s_ml = document.getElementById("s_ml").value;
        var s_name = document.getElementById("s_name").value;
        var data = {"p_name": p_name, "p_area": p_area, "s_ml": s_ml, "s_name": s_name}
        return data
    }

</script>
</html>